//
//  APTranslateModel.h
//  AqualPolo
//
//  Created by dong on 2024/5/10.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface APDetectedLanguage : NSObject
@property (nonatomic, copy) NSString *language;
@property (nonatomic, assign) double score;
+ (APDetectedLanguage *)modelWithDictionary:(NSDictionary *)dict;

@end

@interface APTranslations : NSObject
@property (nonatomic, copy) NSString *translatedText;
@property (nonatomic, copy) NSString *detectedSourceLanguage;
+ (APTranslations *)modelWithDictionary:(NSDictionary *)dict;

@end

@interface APTranslateModel : NSObject
@property (nonatomic, strong) APDetectedLanguage *detectedLanguage;
@property (nonatomic, strong) NSArray <APTranslations *>*translations;

+ (APTranslateModel *)modelWithDictionary:(NSDictionary *)dict;

@end

NS_ASSUME_NONNULL_END
